package com.yd.domain.sys;

import com.yd.domain.commom.DomainObject;
import com.yd.domain.searchParam.MessageReturnParam;

import java.util.Date;
import java.util.List;

/**
 * @author zy
 * @create 2018-03-07 9:55
 * @desc 用户表
 **/
public class User extends DomainObject<User>{
    private String userName;//用户名
    private String password;//密码
    private String status;// 用户状态
    private String type;//用户类型
    private String realName;//法人
    private String phone;//手机号码
    private String idCard;//身份证号
    private String registCode;//注册码
    private String checkStatus= DicEnum.CHECK.UN_CHECK;//默认未审核状态
    private String checkDes="";//审核描述
    private Boolean agreementStatus=false;//协议是否同意
    private Date registTime=new Date();//注册时间

    private String agentCompany;
    private String xydm;//信用代码
    private String companyName;//公司名称
    private String yyzz;//营业执照
    private List<String>permCodeList;//权限编码列表
    private MessageReturnParam newMsg;//最新消息情况
    private String phonePlace;

    public String getAgentCompany() {
        return agentCompany;
    }

    public void setAgentCompany(String agentCompany) {
        this.agentCompany = agentCompany;
    }

    public MessageReturnParam getNewMsg() {
        return newMsg;
    }

    public void setNewMsg(MessageReturnParam newMsg) {
        this.newMsg = newMsg;
    }

    public List<String> getPermCodeList() {
        return permCodeList;
    }

    public void setPermCodeList(List<String> permCodeList) {
        this.permCodeList = permCodeList;
    }

    public String getYyzz() {
        return yyzz;
    }

    public void setYyzz(String yyzz) {
        this.yyzz = yyzz;
    }

    public String getXydm() {
        return xydm;
    }

    public void setXydm(String xydm) {
        this.xydm = xydm;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Date getRegistTime() {
        return registTime;
    }

    public void setRegistTime(Date registTime) {
        this.registTime = registTime;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRegistCode() {
        return registCode;
    }

    public void setRegistCode(String registCode) {
        this.registCode = registCode;
    }

    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getCheckDes() {
        return checkDes;
    }

    public void setCheckDes(String checkDes) {
        this.checkDes = checkDes;
    }

    public Boolean getAgreementStatus() {
        return agreementStatus;
    }

    public void setAgreementStatus(Boolean agreementStatus) {
        this.agreementStatus = agreementStatus;
    }

    public String getPhonePlace() {
        return phonePlace;
    }

    public void setPhonePlace(String phonePlace) {
        this.phonePlace = phonePlace;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", status='" + status + '\'' +
                ", type='" + type + '\'' +
                ", realName='" + realName + '\'' +
                ", phone='" + phone + '\'' +
                ", idCard='" + idCard + '\'' +
                ", registCode='" + registCode + '\'' +
                ", checkStatus='" + checkStatus + '\'' +
                ", checkDes='" + checkDes + '\'' +
                ", agreementStatus=" + agreementStatus +
                ", registTime=" + registTime +
                ", agentCompany='" + agentCompany + '\'' +
                ", xydm='" + xydm + '\'' +
                ", companyName='" + companyName + '\'' +
                ", yyzz='" + yyzz + '\'' +
                ", permCodeList=" + permCodeList +
                ", newMsg=" + newMsg +
                '}';
    }
}
